import 'package:flutter/material.dart';

import 'MyImage.dart';

class IconTextWidget extends StatefulWidget {
  final String text;
  final MyImage icon;

  IconTextWidget({required this.text, required this.icon});

  @override
  _IconTextWidgetState createState() => _IconTextWidgetState();
}

class _IconTextWidgetState extends State<IconTextWidget> {
  @override
  Widget build(BuildContext context) {
    return Row(
      mainAxisAlignment: MainAxisAlignment.center,
      children: [
        widget.icon,
        Expanded(child: Text(widget.text)),
      ],
    );
  }
}
